<template>
  <div class="tabs">
    <van-tabs v-model="active">
      <van-tab v-for="(v,i) in name" :key="i"  :title="v"></van-tab>
      <!-- <van-tab title="新到优先"></van-tab>
      <van-tab title="快过期优先"></van-tab> -->
    </van-tabs>
  </div>
</template>

<script>
export default {
  props:["name"],
  name: "tabs",
  data() {
    return {
      active: 0,
    };
  },
};
</script>
<style  scoped>
</style>
<style>
</style>

